
    import java.util.Scanner;

    public class 输出两个数的加减乘除商 {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            scanner.close();
            if(a<b)
                a=a+b-(b=a);
            System.out.printf("%d %d %d %d %d",a+b,a-b,a*b,a/b,a%b);
        }
    }

